{# empty Twig template #}
{% extends "base.html.twig" %}

{% block content %}
<div class="row">
    <div class="col-xs-8 col-xs-offset-2">
        <h3 class="text-center page-header">Lahti Ski Games App Management</h3>

        <form class="form-horizontal" method="post" action="{{ urlFor('post-login') }}">
            <div class="form-group">
                <label class="col-xs-3 col-lg-3 control-label" for="email">Email</label>
                <div class="col-xs-9 col-lg-7">
                    <input type="text" class="form-control" placeholder="Email" name="email" required />
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-3 col-lg-3 control-label" for="password">Password</label>
                <div class="col-xs-9 col-lg-7">
                    <input type="password" class="form-control" placeholder="Password" name="password" required/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-9 col-xs-offset-3 col-lg-7 col-lg-offset-3">
                    <button type="submit" class="btn btn-block btn-default">
                        Login
                    </button>
                </div>
            </div>
        </form>
        <div class="col-xs-12 text-center">Don't have an account? <a href="{{urlFor('signup')}}">Signup</a></div>
        
        {% if error is not empty %}
            <div class="col-xs-12"><h3 class="text-center"><span class="label label-danger">{{ error }}</span></h3></div>
        {% endif %}
    </div>
</div>
{% endblock %}